package com.dimples.dd.system.model.vo;

import cn.hutool.core.date.DatePattern;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;
import java.util.Set;

/**
 * 用户分页视图对象
 *
 * @author zhongyj <1126834403@qq.com><br/>
 * @date 2024/6/20
 */
@Schema(description = "用户分页对象")
@Data
public class UserPageVO {

    @Schema(description = "用户ID")
    private Long id;

    @Schema(description = "用户名")
    private String username;

    @Schema(description = "用户昵称")
    private String nickname;

    @Schema(description = "手机号")
    private String mobile;

    @Schema(description = "性别")
    private String gender;

    @Schema(description = "性别")
    private String genderLabel;

    @Schema(description = "用户头像地址")
    private String avatar;

    @Schema(description = "用户邮箱")
    private String email;

    @Schema(description = "用户状态(1:启用;0:禁用)")
    private Integer status;

    @Schema(description = "部门Id")
    private String deptId;
    
    @Schema(description = "部门名称")
    private String deptName;

    @Schema(description = "角色Id，多个使用英文逗号(,)分割")
    private String roleIds;

    @Schema(description = "角色名称，多个使用英文逗号(,)分割")
    private String roleNames;

    @Schema(description = "用户角色编码集合")
    private Set<String> roles;

    @Schema(description = "创建时间")
    @JsonFormat(pattern = DatePattern.NORM_DATETIME_PATTERN)
    private Date createTime;

    @Schema(description = "登录时间")
    @JsonFormat(pattern = DatePattern.NORM_DATETIME_PATTERN)
    private Date loginDate;

    @Schema(description = "更新时间")
    @JsonFormat(pattern = DatePattern.NORM_DATETIME_PATTERN)
    private Date updateTime;

    @Schema(description = "备注")
    private String remark;

}
